<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>我的地址</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Bdrun/address')}">
        地址：
        <input type="text" name="detail_address" style="width: 200px;" value="{$formget.detail_address}" placeholder="请输入关键字...">
        <input type="submit" class="btn btn-primary" value="搜索" />

    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>{:L('USER_ID')}</th>
                <th>{:L('ADDRESS_TYPE')}</th>
                <th>{:L('ADDRESS_NAME')}</th>
                <th>{:L('DETAIL_ADDRESS')}</th>
                <th>{:L('LATITUDE')}</th>
                <th>{:L('LONGITUDE')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.address_id}" title="ID:{$vo.address_id}"></td>
                   <td align="center">{$k+1}</td>
                    <td>{$vo['user_id']}</td>
                    <td>{$vo['address_type']==1?'用户收藏':'历史记录'}</td>
                    <td>{$vo['address_name']}</td>
                    <td>{$vo['detail_address']}</td>
                    <td>{$vo['latitude']}</td>
                    <td>{$vo['longitude']}</td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html